import requests

url = 'https://kdtx-test.itheima.net/api/login'

header_data = {
    'Content-Type': 'application/json',
}

login_data = {
    "username": "admin",
    "password": "HM_2023_test",
    "code": "2",
    "uuid": "ee77a675cb244df5bd769ef03ad49331"
}


response = requests.post(url=url,headers=header_data, json=login_data)
print(response.status_code)
print(response.text)